<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
if(session.getAttribute("account") == null){
	response.sendRedirect("index.jsp");
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <base href="<%=basePath%>"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>个人信息管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/css<s:property value="#session.account.theme"/>/echead.css"/>
	<link rel="stylesheet" type="text/css" href="css/css<s:property value="#session.account.theme"/>/contactList.css"/>
</head>
<body>
<div id="menu">
   <ul >
   <a href="dayAtAGlanceAction"><li id="dayAtAGlance"></li></a>
   <a href="noteList"/><li id="notes"></li></a>
   <a href="taskList"><li id="tasks"></li></a>
   <a href="contactList"><li id="contacts"></li></a>
   <a href="appointmentList"><li id="appointments"></li></a>
   <a href="accountEditShow"><li id="myAccount"></li></a>  
   <a href="logoff"><li id="logoff"></li></a>
   <a href="cgtheme?theme=1"><li id="skin1"></li></a>
   <a href="cgtheme?theme=2"><li id="skin2"></li></a>
   <a href="cgtheme?theme=3"><li id="skin3"></li></a>
   </ul> <div id="logo"></div>
</div>

<div id="main">
    <div id="secontmenu">
      <ul>
     <a href="contactForware?operate=create"> <li id="newContact"></li></a>
      </ul>
    </div>
    <div id="content">
          <div id="title"></div>
          <div id="contacts">
          <s:if test="%{!contacts.isEmpty()}">
          <s:iterator value="contacts">
               <p>
               <span>姓名：</span><s:property value="name"/>　　　
               <a href="contactForware?operate=update&contact.con_id=<s:property value="con_id"/>">（修改）</a>
               <a href="contactForware?operate=delete&contact.con_id=<s:property value="con_id"/>">（删除）</a>
               </p>
          </s:iterator>     
          </s:if>
          <s:else>
          	<p>没有联系人</p>
          </s:else>
          </div>
    </div>
</div>
</body>
</html>
